package com.itheima.d2_inner_class2;

public class Test {
    public static void main(String[] args) {

        Animal a = new Animal() {
            @Override
            public void cry() {
                System.out.println("汪汪汪");
            }
        };
        a.cry();

    }
}



abstract class Animal {
    public abstract void cry();
}